<?php


namespace App\Http\Controllers\Api;


use App\Models\Posts\WxTag;
use Illuminate\Http\Request;

class TagsController extends BaseController
{

    /**
     * 热门标签列表
     * @param Request $request
     */
    public function hotTags(Request $request)
    {
        $data = WxTag::where('tags_state', 0)
            ->where('tags_number', '>', 1)
            ->get(['id','tags_name']);
        return $this->success($data);
    }

}
